package net.oschina.app.ui.activity.general;

import net.oschina.app.bean2.GeneralBlogDetailBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.general.BlogDetailProtocol;
import net.oschina.app.ui.activity.WebActivity;

/**
 * Created by Shinelon on 2017/1/18.
 */

public class BlogWebActivity extends WebActivity {
    @Override
    protected String getToolBarTitle() {
        return "博客详情";
    }

    @Override
    protected String getUrl(Object body) {
        return ((GeneralBlogDetailBean)body).getBlog().getUrl();
    }

    @Override
    protected AccessProtocol getAccessProtocol() {
        return new BlogDetailProtocol();
    }
}
